<!DOCTYPE HTML>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <import file="Js.jquery-1#12#4#min"/>
    <import file="Js.bootstrap#min"/>
    <import file="Js.storecenter"/>
    <import type='css' file="Css.bootstrap#min"/>
    <import type='css' file="Css.common"/>
    <!--<js href="/Public/Js/bootstrap.min.js" />
    <js href="/Public/Js/jquery-1.12.4.min.js" />
    <css href="/Public/Css/bootstrap.min.css" />-->
    <title>卖家中心</title>
</head>
<body>
<include file="Public/header"/>
<!--登陆-->
<div class="container">
    <!--登陆-->
    <div class="modal fade bs-example-modal-sm" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel">
        <div class="modal-dialog modal-sm">
            <div class="modal-content">
                <div class="panel panel-default">
                    <div class="panel-heading">登陆</div>
                    <div class="panel-body">
                        <div class="input-group">
                            <span class="input-group-addon" id="sizing-addon1">账号</span>
                            <input type="text" class="form-control" placeholder="Username"
                                   aria-describedby="sizing-addon1" id="username">
                        </div>
                        <div style="padding:10px"></div>
                        <div class="input-group">
                            <span class="input-group-addon" id="sizing-addon2">密码</span>
                            <input type="password" class="form-control" placeholder="Password"
                                   aria-describedby="sizing-addon2" id="password">
                            <span class="input-group-btn">
                                 <button class="btn btn-default" type="button" id="lg">Go!</button>
                            </span>
                        </div>
                        <div style="padding:5px"></div>
                        <div class="inform" id="inform_account_login" style="display:none;color:red;">
                            <span class="glyphicon glyphicon-exclamation-sign" aria-hidden="true"
                                  style="height: 10px"></span>
                            <span class="sr-only">Error:</span>
                            用户名或密码错误！
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <div class="content-wrap">
        <div class="content">
            <div class="panel panel-default">
                <div class="panel-heading">您的店铺：{$storeData['shop_name']}</div>
                <div class="panel-body">
                    <div>
                        <!-- Nav tabs -->
                        <ul class="nav nav-tabs" role="tablist">
                            <li role="presentation" class="active"><a href="#accept" aria-controls="accept" role="tab"
                                                                      data-toggle="tab">接单</a></li>
                            <li role="presentation"><a href="#refuse" aria-controls="refuse" role="tab"
                                                       data-toggle="tab">退单</a></li>
                            <li role="presentation"><a href="#setting" aria-controls="setting" role="tab"
                                                       data-toggle="tab">店铺设置</a></li>
                        </ul>

                        <!-- Tab panes -->
                        <div class="tab-content">
                            <div role="tabpanel" class="tab-pane active" id="accept">
                                <table class="table table-striped table-hover table-bordered">
                                    <tr>
                                        <th>下单时间</th>
                                        <th>菜品：数量</th>
                                        <th>配送地址</th>
                                        <th>顾客电话</th>
                                        <th>备注</th>
                                        <th>总计(￥)</th>
                                        <th>操作</th>
                                    </tr>

                                    <volist name="orderAccept" id="v" empty="暂无订单">
                                        <tr>
                                            <td>{$v.setorder_time}</td>
                                            <td>
                                                <foreach name="v.dishList" item="vo" >
                                                    {$vo}<br />
                                                </foreach>
                                            </td>
                                            <td>{$v.address}</td>
                                            <td>{$v.phone}</td>
                                            <td>{$v.remark}</td>
                                            <td>{$v.total_price}</td>
                                            <td><input data-id="{$v.id}" class="btn btn-default btn-success acceptJD" type="button"
                                                       value="接单">&nbsp;<input data-id="{$v.id}" class="btn btn-default btn-danger refuseJD"
                                                                         type="button"
                                                                         value="拒单"></td>
                                        </tr>
                                    </volist>


                                </table>
                            </div>
                            <div role="tabpanel" class="tab-pane" id="refuse">
                                <table class="table table-striped table-hover">
                                    <tr>
                                        <th>退单时间</th>
                                        <th>订单号</th>
                                        <th>菜品：数量</th>
                                        <th>顾客电话</th>
                                        <th>退单原因</th>
                                        <th>操作</th>
                                    </tr>
                                    <volist name="orderRefuse" id="v" empty="暂无退单">
                                        <tr>
                                            <td>{$v.setorder_time}</td>
                                            <td>{$v.id}</td>
                                            <td>
                                                <foreach name="v.dishList" item="vo" >
                                                    {$vo}<br />
                                                </foreach>
                                            </td>
                                            <td>{$v.phone}</td>
                                            <td>无</td>
                                            <td><input data-id="{$v.id}" class="btn btn-default btn-success acceptTD" type="button"
                                                       value="接单">&nbsp;<input data-id="{$v.id}" class="btn btn-default btn-danger refuseTD"
                                                                               type="button"
                                                                               value="拒单"></td>
                                        </tr>
                                    </volist>
                                </table>
                            </div>
                            <div role="tabpanel" class="tab-pane" id="setting">
                                3
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>


</body>
</html>